package org.meteorshower.controller;


import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.domain.Renter;
import org.meteorshower.service.IRenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ResponseBody
@RequestMapping("/api/renter")
public class RenterController extends BaseController<Renter>{

    private final IRenterService renterService;

    @Autowired
    public RenterController(IRenterService renterService) {
        this.renterService = renterService;
    }

    @Override
    public IService<Renter> getService() {
        return renterService;
    }
}
